package com.imut.hcdp.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.imut.hcdp.mapper.HcdpTrainAllMapper;
import com.imut.hcdp.domain.HcdpTrainAll;
import com.imut.hcdp.service.IHcdpTrainAllService;


@Service
public class HcdpTrainAllServiceImpl implements IHcdpTrainAllService
{
    @Autowired
    private HcdpTrainAllMapper hcdpTrainAllMapper;


    @Override
    public HcdpTrainAll selectHcdpTrainAllByRouteId(Long routeId)
    {
        return hcdpTrainAllMapper.selectHcdpTrainAllByRouteId(routeId);
    }


    @Override
    public List<HcdpTrainAll> selectHcdpTrainAllList(HcdpTrainAll hcdpTrainAll)
    {
        return hcdpTrainAllMapper.selectHcdpTrainAllList(hcdpTrainAll);
    }


    @Override
    public int insertHcdpTrainAll(HcdpTrainAll hcdpTrainAll)
    {
        return hcdpTrainAllMapper.insertHcdpTrainAll(hcdpTrainAll);
    }


    @Override
    public int updateHcdpTrainAll(HcdpTrainAll hcdpTrainAll)
    {
        return hcdpTrainAllMapper.updateHcdpTrainAll(hcdpTrainAll);
    }


    @Override
    public int deleteHcdpTrainAllByRouteIds(Long[] routeIds)
    {
        return hcdpTrainAllMapper.deleteHcdpTrainAllByRouteIds(routeIds);
    }


    @Override
    public int deleteHcdpTrainAllByRouteId(Long routeId)
    {
        return hcdpTrainAllMapper.deleteHcdpTrainAllByRouteId(routeId);
    }
}
